<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
<!-- above set at the top of the file will set     -->
<!-- the browser's rendering engine into           -->
<!-- "Quirks Mode". Replacing this declaration     -->
<!-- with a "Standards Mode" doctype is supported, -->
<!-- but may lead to some differences in layout.   -->

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
       <title>个人智能助理</title>
    <script type="text/javascript" src="http://qzonestyle.gtimg.cn/qzone/openapi/qc.js" charset="utf-8" ></script>
   	<script type="text/javascript" src="http://www.baidu.com/olime/bdime_open.js"></script>
    <script type="text/javascript" src="static/jquery/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" charset="utf-8"  src="static/ueditor/editor_config.js"></script>
	<script type="text/javascript" charset="utf-8"  src="http://ueditor.baidu.com/js/editor_ui_all.js"></script>
	<link rel="stylesheet" type="text/css" href="http://ueditor.baidu.com/themes/default/ueditor.css"/>
    
<script type="text/javascript">
$(document).ready(function(){
  // 在这里写你的代码...
  QC.Login.insertButton({
    btnId : "qqLoginBtn",//插入按钮的html标签id
    size : "A_XL",//按钮尺寸
    clientId : "100240217",//appId
    scope : "get_user_info",//展示授权，可选
    display : "pc",//应用场景，可选
    redirectURI : "http://www.chenmin.org", // 回调地址，可选
    btnMode : "showUserAfterLogin"     //是否登录后切换用户信息模式
	});
	var editor = new baidu.editor.ui.Editor();editor.render("editor")
	$('#save').click( function () {
	 //$(this).hide();
	 var value = editor.getContent() ;
	 alert(value);
    });
});
</script>

  </head>

  <body>
    <h1>个人智能助理</h1>
	<span id="qqLoginBtn"></span>
<button id = "save">保存</button>

 <textarea id="editor"></textarea>
   
  </body>
</html>
